// 导入vue和vuex
import Vue from 'vue'
import Vuex from 'vuex'
import cart from './cart.js'
import user  from './user.js'
// 将Vuex 注册到vue
Vue.use(Vuex)

const store = new Vuex.Store({
  modules:{
    'my-cart': cart,
    "my-user": user,
  }
})

export default store